package com.cambright.lotusroot
{
	public class Exception extends Error
	{
		
		static public const APP_NEW:Exception = new Exception(0x80000101, "请通过com.cambright.lotusroot.startUp()来创建应用。");
		
		static public const MODULE_IO:Exception = new Exception(0x80000201, "加载模块时出现错误。");
		static public const MODULE_INVALID:Exception = new Exception(0x80000202, "无效的模块。");
		static public const MODULE_INITIALIZE:Exception = new Exception(0x80000203, "在模块的初始化过程中发生错误。");
		
		static public const COMMAND_DISPATCHED:Exception = new Exception(0x80000302, "Command已经发送过。不能重复发送。");
		static public const COMMAND_NOT_BE_RELATED:Exception = new Exception(0x80000303, "没有找到与当前Command关联的Handler");
		
		static public const LIBRARY_LOAD:Exception = new Exception(0x80000401, "加载库文件时出现错误。");
		
		public function Exception(id:int, message:String)
		{
			super(message, id);
		}
	}
}